<?php

use swap\visitor;

class func_wrapper_helper extends \swap\helper {
	
	public static function run() {
        $show_login_form = true;
        $user = array();
        
        if (visitor::has_role('user')) {
            $show_login_form = false;
            $user = visitor::get_role_vars('user');
        }
        
        self::set('user', $user);
        self::set('show_login_form', $show_login_form);
        
		self::render();
	}
	
}